FROM registry:5000/centos-7-ssh-server:v1

# 安装常用工具便于问题排查
RUN yum install -y which iproute lsof lrzsz zip unzip net-tools telnet vim tree wget mc less && yum clean all

# 从 https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html 下载 jdk-8u241-linux-x64.tar.gz
ADD jdk-8u241-linux-x64.tar.gz /usr/java/
RUN ln -s /usr/java/jdk1.8.0_241/ /usr/java/default && ln -s /usr/java/default/jre/bin/java /usr/bin/java
ADD java.sh /etc/profile.d/java.sh

ENV JAVA_HOME=/usr/java/default
ENV PATH $PATH:$JAVA_HOME/bin
ENV LANG en_US.UTF-8

